<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns="http://www.w3.org/1999/XSL/Format"
	xmlns:doc="livcos.org/ns/doc"
	xmlns:dg="livcos.org/ns/doc/diagram"
	exclude-result-prefixes="doc dg">
	
	<xsl:import href="../../doc/diagram.xsl"/>
	
	<xsl:param name="scale" select="'66%'"/>

	<xsl:variable name="incl-editor" select="'0'"/>
	
	<xsl:template match="dg:diagram">
		<block margin-left="1mm" margin-top="1pt" margin-right="1mm" margin-bottom="1pt">
			<instream-foreign-object width="100%" content-width="{$scale}" text-align="center">
				<xsl:apply-templates select="." mode="svg"/>
			</instream-foreign-object>
		</block>
		<block margin-left="6mm" margin-top="4pt" margin-right="4mm" margin-bottom="4pt">
			<xsl:value-of select="doc:note"/>
		</block>
	</xsl:template>
	
	<xsl:template match="dg:connect/dg:line">
	</xsl:template>
	
</xsl:stylesheet>